package com.devicemantra.coordinate.dataobjects;

import javax.jdo.annotations.*;

import java.util.*;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable ="true")
public class CLoginInfo 
{
	@PrimaryKey
    @Persistent (valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key mKey;
	
	@Persistent
	private String mUserName;
	
	@Persistent
	private String mPassword;
	
	public CLoginInfo() 
	{
		
		mUserName = "";
		mPassword = "";
	}
	
	public CLoginInfo(String pUserName, String pPassword)
	{
		mUserName = pUserName;
		mPassword = pPassword;
	}
	
	/**
	 * @return the mUserName
	 */
	public String getUserName() {
		return mUserName;
	}


	/**
	 * @param mUserName the mUserName to set
	 */
	public void setUserName(String pUserName) {
		this.mUserName = pUserName;
	}


	/**
	 * @return the mPassword
	 */
	public String getmPassword() {
		return mPassword;
	}


	/**
	 * @param mPassword the mPassword to set
	 */
	public void setmPassword(String pPassword) {
		this.mPassword = pPassword;
	}
	
	public String getKey()
	{
		return KeyFactory.keyToString(mKey);
	}
	
	public void setKey(Key pKey)
	{
		mKey = pKey;
	}
}
